home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 November / PCWNOV08.iso / Software / Freeware / Mini Map Sidebar 0.3 / mini_map_sidebar-0.3.0-fx.xpi / chrome / content / maptab.xul < prev    next >
Encoding:
Extensible Markup Language  |  2008-07-11  |  19.9 KB  |  343 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://minimap/skin/maps.css" type="text/css"?>
  4. <!DOCTYPE page SYSTEM "chrome://minimap/locale/minimap.dtd">
  5.  
  6. <window id="sbminimap" title="&maptab.title;" onload="initMaps(); mapHome();" onunload="closeMaps();" 
  7.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" >
  8.   
  9.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js" />
  10.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js" />
  11.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js" />
  12.   <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js" /> 
  13.   <script type="application/x-javascript" src="chrome://browser/content/browser.js" /> 
  14.   <script type="application/x-javascript" src="chrome://minimap/content/rdfds.js" />
  15.   <script type="application/x-javascript" src="chrome://minimap/content/tree.js" />
  16.   <script type="application/x-javascript" src="chrome://minimap/content/import.js" />
  17.   <script type="application/x-javascript" src="chrome://minimap/content/export.js" />
  18.   <script type="application/x-javascript" src="chrome://minimap/content/maps.js" />
  19.   <script type="application/x-javascript" src="chrome://minimap/content/json.js" /> 
  20.   <script type="application/x-javascript" src="chrome://minimap/content/services.js"/>
  21.  
  22.  
  23.   <popupset>
  24.       <menupopup id="mapsContext"><!--{{{-->
  25.           <menuitem label="&menuitem.map.options;" oncommand="myOptions();" />
  26.           <menuitem label="&menuitem.setMapHome;" oncommand="setMapHome();" />
  27.           <menuitem label="&menuitem.setStartAddress;" oncommand="setStartAddress();" />
  28.           <menuitem label="&menuitem.about.accuracy;" oncommand="aboutAccuracy();" />
  29.         <menuseparator />
  30.           <menu label="&menuitem.address.directions.to;">
  31.               <menupopup>
  32.                   <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-to');" /> 
  33.                   <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-to');" /> 
  34.                   <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-to');" /> 
  35.             </menupopup>
  36.           </menu>
  37.           <menu label="&menuitem.address.directions.from;">
  38.               <menupopup>
  39.                   <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-from');" /> 
  40.                   <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-from');" /> 
  41.                   <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-from');" /> 
  42.               </menupopup>
  43.           </menu>
  44.           <menu label="&menuitem.directions.to.my.address;">
  45.               <menupopup>
  46.                   <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-to-my');" /> 
  47.                   <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-to-my');" /> 
  48.                   <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-to-my');" />
  49.                   <menuitem label="&menuitem.address.service.preview.tab;" oncommand="previewAddressService('preview-to','address');" /> 
  50.               </menupopup>
  51.           </menu>    
  52.           <menu label="&menuitem.directions.from.my.address;">
  53.               <menupopup>
  54.                   <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-from-my');" /> 
  55.                   <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-from-my');" /> 
  56.                   <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-from-my');" /> 
  57.                   <menuitem label="&menuitem.address.service.preview.tab;" oncommand="previewAddressService('preview-from','address');" /> 
  58.               </menupopup>
  59.           </menu>
  60.           <menuseparator />
  61.           <menu label="&menuitem.tagzania;">
  62.               <menupopup>
  63.                   <menuitem label="&menuitem.tagzania.post;" oncommand="openAddressService('tagzania-post');" />
  64.                   <menuitem label="&menuitem.tagzania.nearby;" oncommand="openAddressService('tagzania-nearby');" />    
  65.               </menupopup>
  66.           </menu>
  67.           <menu label="&menuitem.platial;">
  68.               <menupopup>
  69.                   <menuitem label="&menuitem.platial.places;" oncommand="openAddressService('platial-places');" />
  70.                   <menuitem label="&menuitem.platial.places.grab;" oncommand="openAddressService('platial-add');" />
  71.               </menupopup>
  72.           </menu>
  73.           <menuseparator />
  74.           <menu label="&menuitem.address.view.share;">
  75.               <menupopup>
  76.                   <menuitem label="&menuitem.export.kml;" oncommand="exportMaps('kmlsel');" />
  77.                   <menuitem label="&menuitem.export.csv;" oncommand="exportMaps('csvsel');" />
  78.                   <menuitem label="&menuitem.export.gpx;" oncommand="exportMaps('gpxsel');" />
  79.                   <menuitem label="&menuitem.export.minimap;" oncommand="exportMaps('minimapsel');" />
  80.                   <menuitem label="&menuitem.address.view.latlng;" oncommand="shareLocation('latlng');" />
  81.  
  82.                   <menuitem label="&menuitem.address.view.latlng.html;" oncommand="shareLocation('html');" />
  83.                   <menuitem label="&menuitem.address.view.link;" oncommand="shareLocation('link');" />
  84.                   <menuitem label="&menuitem.address.view.email;" oncommand="shareLocation('email');" />
  85.                   <menuitem label="&menuitem.address.view.site;" oncommand="openMinimapEmbed();" />
  86.               </menupopup>
  87.           </menu>
  88.           <!--menuseparator /-->
  89.           <menu label="&menuitem.address.view.location;">
  90.               <menupopup>
  91.                   <menuitem label="&menuitem.view.in.google.earth;" oncommand="openAddressService('google-earth');" />
  92.               <menuitem label="Flickr" oncommand="openAddressService('flickr');" />
  93.               <menuitem label="Panoramio" oncommand="openAddressService('panoramio');" />
  94.               <menuitem label="&menuitem.view.in.geody;" oncommand="openAddressService('geody');" />
  95.                   <menuitem label="&menuitem.view.in.localize;" oncommand="openAddressService('localize');" />
  96.                   <menuitem label="&menuitem.view.in.geonames;" oncommand="openAddressService('geonames');" />
  97.                   <menuitem label="&menuitem.view.in.geourl;" oncommand="openAddressService('geourl');" />
  98.                   <menuitem label="&menuitem.view.in.google;" oncommand="openAddressService('google');" />
  99.                   <menuitem label="&menuitem.view.in.yahoo;" oncommand="openAddressService('yahoo');" />
  100.                   <menuitem label="&menuitem.view.in.microsoft;" oncommand="openAddressService('microsoft');" />
  101.               </menupopup>
  102.           </menu>
  103.           <menu label="&menuitem.address.view.nearby.about;">
  104.               <menupopup>
  105.                 <menu label="&menuitem.address.view.upcoming;">
  106.                       <menupopup id="upcoming">
  107.                       </menupopup>
  108.                   </menu>
  109.                   <menu label="&menuitem.address.view.amazon;">
  110.                       <menupopup id="amazon">
  111.                       </menupopup>
  112.                   </menu>
  113.                 <menu label="&menuitem.address.view.ebay;">
  114.                       <menupopup id="ebay">
  115.                       </menupopup>
  116.                 </menu>
  117.                 <menu label="&menuitem.address.view.maps.com;">
  118.                       <menupopup id="mapscom">
  119.                       </menupopup>
  120.                   </menu>
  121.             </menupopup>
  122.           </menu>
  123.           <menuseparator />
  124.         <menuitem label="&menuitem.delete;" oncommand="delete_address();" />
  125.           <menuitem label="&menuitem.properties;" oncommand="edit_address();" />
  126.           <menuitem label="&menuitem.openurl;" oncommand="openAddressService('self');" /> 
  127.       </menupopup><!--}}}-->
  128.    </popupset>
  129.  
  130.     <popupset>
  131.       <menupopup id="kmlContext"><!--{{{-->
  132.           <menuitem label="&minimap.kml.delete;" oncommand="delete_Kml()" />
  133.           <menuitem label="&minimap.kml.edit;" oncommand="edit_Kml()" />
  134.           <menuitem label="&minimap.kml.google.earth;" oncommand="googleEarthKml()" />
  135.           <menuitem label="&minimap.kml.embed;" oncommand="embed_Kml()" />
  136.       </menupopup><!--}}}-->
  137.     </popupset>
  138.  
  139.     <hbox flex="1" ondragover="nsDragAndDrop.dragOver(event,mapsObserver)" ondragdrop="nsDragAndDrop.drop(event,mapsObserver)" style="margin: 0px; padding: 0px; background-color: #555555; color: white;" >
  140.         <vbox flex="1">    
  141.             <hbox id="flock-maps-topbar-toolbar" style="margin: 0px; padding: 5px; background-color: #efeff2; color: white;" >
  142.                 <toolbarbutton id="myoptions" class="geobutb" label="" tooltiptext="&menuitem.map.tools.tooltip;" type="menu" >
  143.                     <menupopup>
  144.                     <menu label="&menuitem.options.import;" tooltiptext="&menuitem.options.import;">
  145.                     <menupopup>
  146.                               <menuitem label="KML" oncommand="importMaps('kml');"/>
  147.                               <menuitem label="GPX" oncommand="importMaps('gpx');"/>
  148.                               <menuitem label=".minimap" oncommand="importMaps('minimap');"/>
  149.                     </menupopup>
  150.                     </menu>
  151.                     <menu label="&menuitem.options.export;" tooltiptext="&menuitem.options.export;">
  152.                     <menupopup>
  153.                               <menuitem label="KML" oncommand="exportMaps('kml');"/>
  154.                               <menuitem label="CSV" oncommand="exportMaps('csv');"/>
  155.                               <menuitem label="GPX" oncommand="exportMaps('gpx');"/>
  156.                               <menuitem label=".minimap" oncommand="exportMaps('minimap');"/>
  157.                     </menupopup>
  158.                     </menu>
  159.                         <menuitem id="" label="&menuitem.map.options;" tooltiptext="&menuitem.map.options;" oncommand="myOptions();" />
  160.                 <menuitem id="" label="&menuitem.map.help;" tooltiptext="&menuitem.map.help;" oncommand="minimapOpenUrl('help')" />
  161.                 <menuitem id="" label="&menuitem.map.homepage;" tooltiptext="&menuitem.map.homepage;" oncommand="minimapOpenUrl('home')" />
  162.                 <menuitem id="" label="&menuitem.map.release.notes;" tooltiptext="&menuitem.map.release.notes;" oncommand="minimapOpenUrl('release')" />
  163.                 <menuitem id="" label="&menuitem.map.donate;" tooltiptext="&menuitem.map.donate;" oncommand="minimapOpenUrl('donate')" />
  164.                     </menupopup>
  165.                 </toolbarbutton>
  166.                 <spacer flex="1" />
  167.                 <toolbarbutton id="dragzoom" class="geobutb" label="" tooltiptext="&menuitem.map.dragzoom;" oncommand="extDragZoom()" />
  168.                 <toolbarbutton id="zoomin" class="geobutb" label="" tooltiptext="&menuitem.map.zoomin;" oncommand="extZoomIn()" />
  169.                 <toolbarbutton id="zoomout" class="geobutb" label="" tooltiptext="&menuitem.map.zoomout;" oncommand="extZoomOut()" />
  170.                 <toolbarbutton id="zoominplus" class="geobutb" label="" tooltiptext="&menuitem.map.zoominplus;" oncommand="extZoomInPlus()" />
  171.                 <toolbarbutton id="zoomoutplus" class="geobutb" label="" tooltiptext="&menuitem.map.zoomoutplus;" oncommand="extZoomOutPlus()" />
  172.                 <toolbarbutton id="undo" class="geobutb" label="" tooltiptext="&menuitem.map.undo;" oncommand="extUndo();" />
  173.                 <toolbarseparator />
  174.         <toolbarbutton id="maptype" class="geobut" tooltiptext="Map Type" type="menu">
  175.             <menupopup>
  176.                 <menuitem id="" label="&menuitem.map.maptype;" tooltiptext="&menuitem.map.maptype;" oncommand="extMapType('Map');" type="radio" name="maptype"/> 
  177.                 <menuitem id="" label="&menuitem.map.sattype;" tooltiptext="&menuitem.map.sattype;" oncommand="extMapType('Satellite');" type="radio" name="maptype"/>
  178.                 <menuitem id="" label="&menuitem.map.hybtype;" tooltiptext="&menuitem.map.hybtype;" oncommand="extMapType('Hybrid');" type="radio" name="maptype"/>
  179.                 <menuitem id="" label="Google Terrain Map" tooltiptext="Google Terrain Map" oncommand="extMapType('Terrain');" type="radio"  name="maptype"/>
  180.                 <menuitem id="" label="Google Earth Map" tooltiptext="Google Earth Map" oncommand="extMapType('Earth');" type="radio"  name="maptype"/>
  181.             </menupopup>
  182.         </toolbarbutton>
  183.                 <toolbarseparator />
  184.                 <toolbarbutton id="traffic" class="geobutb" label="" tooltiptext="&menuitem.map.traffic;" oncommand="extTrafficToggle();" />
  185.                 <toolbarbutton id="panadd" class="geobutb" label="" tooltiptext="&menuitem.map.panaddress;" oncommand="extPanAdd()" />
  186.                 <toolbarbutton id="homemap" class="geobutb" label="" tooltiptext="&menuitem.map.maphome;" oncommand="extMapHome()" />
  187.                 <toolbarbutton id="addAddress" class="geobutb" label="" tooltiptext="&menuitem.map.add.main.tooltip;" type="menu" >
  188.                     <menupopup>
  189.                         <menuitem id="" label="&menuitem.map.addaddress;" tooltiptext="&menuitem.map.addaddress;" oncommand="add_from_input()" /> 
  190.                         <menuitem id="" label="&menuitem.map.addcrosshair;" tooltiptext="&menuitem.map.addcrosshair;" oncommand="extAddCrosshair()" />
  191.                         <menuitem id="" label="&menuitem.map.addkml;" tooltiptext="&menuitem.map.addkml;" oncommand="addKmlUrlPrompt()" />
  192.                     </menupopup>
  193.                 </toolbarbutton>
  194.                 <spacer flex="1" />
  195.             </hbox>
  196.             <browser id="flock-maps-minibrowser" src="http://maps.stcstm.org/maptab_0_3_0.html" flex="1" style="border: 1px solid rgb(51, 51, 51); overflow: hidden" />
  197.         </vbox>
  198.         <splitter collapse="before" resizeafter="farthest"></splitter>
  199.         <vbox style="overflow: auto;">
  200.             <listbox seltype="single" id="multiaddress-list" hidden="true" height="200" context="" onclick="multiAddressAdd(this.value);" >
  201.             </listbox>
  202.             <deck id="maps-deck" selectedIndex="1" width="210">
  203.                 <vbox align="center" pack="center" id="maps_instructions" flex="1">
  204.                     <description>&description.drop.address.or.link;</description>
  205.                 </vbox>
  206.                 <vbox style="padding: 5px; ">
  207.                     <vbox height="250" style="border: solid 2px #fff; -moz-border-radius: 5px;" >
  208.                         <hbox flex="0" >
  209.                             <spacer flex="1" />
  210.                             <label value="&minimap.tab.addresses;" style="font-size: 14px"/>
  211.                             <spacer flex="1" />
  212.                         </hbox>
  213.                     <tree id="address_list" flex="1" datasources="" ref="" flags="dont-build-content" onkeypress="maps_keypress(event)" context="mapsContext" onclick="show()" ondraggesture="nsDragAndDrop.startDrag(event, addressObserver, true);">
  214.                           <treecols>
  215.                             <treecol id="idCol" class="address_list_cols" label="id" hidden="true" ignoreincolumnpicker="true" flex="1" />
  216.                             <treecol id="Name" class="address_list_cols" label="&treecol.name;" flex="1" sort="rdf:http://www.flock.com/rdf/maps#title" sortDirection="ascending" sortActive="true" style="font-style: italic" persist="width ordinal hidden"/>
  217.                             <splitter class="tree-splitter" />
  218.                             <treecol id="Address" class="address_list_cols" label="&treecol.address;" flex="1" hidden="true" sort="rdf:http://www.flock.com/rdf/maps#location" sortDirection="ascending" style="font-style: italic" persist="width ordinal hidden"/>
  219.                             <splitter class="tree-splitter" />
  220.                             <treecol id="Accuracy" class="address_list_cols" label="&treecol.accuracy;" flex="1" hidden="true" sort="rdf:http://www.flock.com/rdf/maps#accuracy" sortDirection="ascending" style="font-style: italic" persist="width ordinal hidden"/>
  221.                             <splitter class="tree-splitter" />
  222.                           </treecols>
  223.                         <template>
  224.                               <rule>
  225.                                 <treechildren>
  226.                                       <treeitem uri="rdf:*">
  227.                                         <treerow properties="makeItClear">
  228.                                               <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#id" />
  229.                                               <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#title" />
  230.                                               <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#location" />
  231.                                               <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#accuracy" />
  232.                                         </treerow>
  233.                                       </treeitem>
  234.                                 </treechildren>
  235.                               </rule>
  236.                         </template>
  237.                     </tree>
  238.                 </vbox>
  239.                 <spacer height="10" />
  240.                 <vbox style="border: solid 2px #fff; -moz-border-radius: 5px;" >
  241.                     <hbox flex="0" >
  242.                     <spacer flex="1" />
  243.                     <label value="&minimap.tab.directions;" style="font-size: 14px"/>
  244.                     <spacer flex="1" />
  245.                     </hbox>
  246.                     <grid>
  247.                         <columns>
  248.                             <column flex="0"/>
  249.                             <column flex="1"/>
  250.                         </columns>
  251.                         <rows>
  252.                             <row>        
  253.                                 <vbox flex="0">
  254.                                     <hbox>
  255.                                     <vbox><spacer flex="1"/><label value="&menuitem.directions.list.label.from;" style="color: #fff"/><spacer flex="1"/></vbox>
  256.                                     <toolbarbutton type="menu" dir="reverse" id="directions-from-list" class="geobutc"
  257.                     datasources="" ref="" style="color: #000" sortResource="http://www.flock.com/rdf/maps#title" sortDirection="ascending">
  258.                                         <menupopup>
  259.                                             <menuitem id="directions-from-list-default" label="&menuitem.directions.list.default;" style="font-weight: bold" oncommand="directionsTextboxTo(this.value)"/>
  260.                                               <menuseparator />
  261.                                         </menupopup>  
  262.                             <template>
  263.                                 <rule>
  264.                                       <menupopup>
  265.                                         <menuitem uri="rdf:*" id="rdf:http://www.flock.com/rdf/maps#id"  label="rdf:http://www.flock.com/rdf/maps#title" value="rdf:http://www.flock.com/rdf/maps#location"  oncommand="directionsMove(this.id); directionsTextboxFrom(this.value)"/>
  266.                                       </menupopup>
  267.                                 </rule>
  268.                               </template>
  269.                         </toolbarbutton>
  270.                         </hbox>
  271.                         </vbox>
  272.                         <vbox flex="0">
  273.                         <textbox id="directions-from-textbox" value="" flex="1"/></vbox>
  274.                         </row>
  275.                         <row>
  276.                         <vbox flex="0">
  277.                         <hbox>
  278.                         <vbox><spacer flex="1"/><label value="&menuitem.directions.list.label.to;" style="color: #fff"/><spacer flex="1"/></vbox>
  279.                         <toolbarbutton id="directions-to-list" type="menu" class="geobutc" dir="reverse"
  280.                     datasources="" ref="" style="color: #000" sortResource="http://www.flock.com/rdf/maps#title" sortDirection="ascending">
  281.                             <menupopup>
  282.                                 <menuitem id="directions-to-list-default" label="&menuitem.directions.list.default;" style="font-weight: bold" oncommand="directionsTextboxTo(this.value)"/>
  283.                                   <menuseparator /> 
  284.                             </menupopup>  
  285.                             <template>
  286.                                 <rule>
  287.                                       <menupopup>
  288.                                         <menuitem uri="rdf:*" id="rdf:http://www.flock.com/rdf/maps#id"  label="rdf:http://www.flock.com/rdf/maps#title" value="rdf:http://www.flock.com/rdf/maps#location" oncommand="directionsMove(this.id); directionsTextboxTo(this.value)"/>
  289.                                       </menupopup>
  290.                                 </rule>
  291.                               </template>
  292.                         </toolbarbutton>
  293.                         </hbox>
  294.                         </vbox>
  295.                         <vbox flex="0">
  296.                         <textbox id="directions-to-textbox" value="" flex="1"/></vbox>
  297.                         </row>
  298.                         <row>
  299.                         <vbox flex="0">
  300.  
  301.                         <label value="&menuitem.directions.list.action;" style="color: #fff"/>
  302.                         </vbox>
  303.                         <vbox flex="0">
  304.                         <hbox>    
  305.                         <toolbarbutton id="preview" class="geobutc" tooltiptext="&menuitem.directions.list.preview;" oncommand="directionsDo('preview')"/>
  306.                         <toolbarbutton id="share" class="geobutc" tooltiptext="&menuitem.directions.list.share;" oncommand="directionsDo('share')"/>
  307.                         <toolbarbutton id="email" class="geobutc" tooltiptext="&menuitem.directions.list.email;" oncommand="directionsDo('email')"/>
  308.                         <toolbarseparator />
  309.                         
  310.                         <toolbarbutton id="google" class="geobutc" tooltiptext="&menuitem.directions.list.google;" oncommand="directionsDo('google')"/>
  311.                         <toolbarbutton id="yahoo" class="geobutc" tooltiptext="&menuitem.directions.list.yahoo;" oncommand="directionsDo('yahoo')"/>
  312.                         <toolbarbutton id="microsoft" class="geobutc" tooltiptext="&menuitem.directions.list.microsoft;" oncommand="directionsDo('microsoft')"/>
  313.                         </hbox>
  314.                         </vbox>
  315.                         </row>
  316.                         </rows>
  317.                         </grid>    
  318.                         </vbox>
  319.                         <spacer height="10" />
  320.                         <vbox style="overflow: auto; border: solid 2px #fff; -moz-border-radius: 5px;" maxheight="200px" >
  321.                             <hbox flex="0" >
  322.                             <spacer flex="1" />
  323.                             <label value="&minimap.tab.kml;" style="font-size: 14px"/>
  324.                             <spacer flex="1" />
  325.                             </hbox>
  326.                             <richlistbox id="kml-list" context="kmlContext" >
  327.                             </richlistbox>
  328.                         </vbox>
  329.                     </vbox>
  330.                     <vbox flex="1">
  331.                         <spacer flex="1" />
  332.                             <hbox flex="1">
  333.                                 <spacer flex="1" />
  334.                                 <image src="chrome://minimap/skin/ajax-loader.gif" maxheight="22px" maxwidth="126px" />
  335.                                 <spacer flex="1" />
  336.                             </hbox>
  337.                         <spacer flex="1" />
  338.                     </vbox>
  339.             </deck>
  340.         </vbox>
  341.   </hbox>
  342. </window>
  343.